package com.education.basic.service;


import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.education.basic.entity.TeachInfo;
import com.education.basic.resource.Courses;
import com.yunshangwoniu.core.baseService.BaseService;
import com.yunshangwoniu.core.page.Page;

public interface TeachInfoService extends BaseService<TeachInfo>
{
	/**
	 * 遍历已经被分配任课老师的课程（分页）
	 * @return
	 */
	Page<TeachInfo> queryTeachInfoWhenExsit(int currentPageNum, int pageSize, Map<String, Object> params,HttpServletRequest request);
	
	/**
	 * 遍历没有被分配任课老师的课程
	 * @return
	 */
	List<Courses> queryTeachInfoWhenNoExsit();
	
	/**
	 * 分配任课老师
	 * @param info
	 * @return
	 */
	TeachInfo assigne(TeachInfo info);
	
	/**
	 * 通过课程名查找
	 * @param courseName
	 * @return
	 */
	Page<TeachInfo> findByCourseName(String courseName);

    /**
     * 通过课程编号获得任课信息
     * @param courseCode
     * @return
     */
    TeachInfo findTeachInfoByCourseCode(String courseCode);
	
}
